package com.ai.controller;

import com.ai.adapter.rest.AliTonyYiRest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 机器人对话
 * @author wuchen
 */
@RestController
@RequestMapping("/hms/appApi/robot")
public class RobotChatController {
    @Resource
    private AliTonyYiRest aliTonyYiRest;
    /**
     * 对话
     * @param param
     * @return
     */
    @PostMapping("/doChat")
    public Object doChat(@RequestBody AliTonyYiRest.DoChatParam param,String authorization){
        return aliTonyYiRest.doChat(param,authorization);
    }
}
